function test2( c, mot, iter)
%TEST1 Summary of this function goes here
%   Detailed explanation goes here
    
    A = zeros(c);
    for i = 1:c
        for j = 1:2:c
            A(i,j) = 1;
        end
    end

    subplot(2,2,1);
    imshow(A);title('Original');
    
    psf = fspecial('motion', mot, 0);
    subplot(2,2,2);
    imshow(psf); title('Point spread function');
    
    %H = MyConv2D(A,psf); 
    H = conv2(A,psf);
    subplot(2,2,3);
    imshow(H); title('Convoluted Image');
       
    HD = MyDeconv2DFast(H, psf,c,c,iter);
    %disp(A);
    %disp(HD);
    subplot(2,2,4);
    imshow(HD); title('Deconvolutet Image');
    
end

